package myBitSet;

public class Test {
    public static void main(String[] args) {
        int[] array = {1,3,2,13,10,3,14,18,3};
        MyBitSet bitSet = new MyBitSet(18);
        for (int i = 0; i < array.length; i++) {
            bitSet.set(array[i]);
        }

        for (int i = 0; i < bitSet.set.length; i++) {
            for (int j = 0; j < 8; j++) {
                if((bitSet.set[i] & (1 << j) ) != 0 ) {
                    System.out.println(i*8+j);
                }
            }
        }
    }
}
